package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.data.request.ReqProfessionList;
import com.example.entity.Profession;
import com.example.utils.R;

/**
 * Author:yanghua
 * Date:2023/10/7 18:05
 */
public interface ProfessionService extends IService<Profession> {
    /**
     * 添加一个专业
     * @param profession
     * @return
     */
    R addOneProfession(Profession profession);

    /**
     * 根据id逻辑删除专业
     * @param id
     * @return
     */
    R deleteOneProfession(Long id);

    /**
     * 修改专业信息
     * @param profession
     * @return
     */
    R updateProfession(Profession profession);

    /**
     * 分页条件查询
     * @param reqProfessionList
     * @return
     */
    R getProfessionList(ReqProfessionList reqProfessionList);
}
